<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Array Test</title>
<script type="text/javascript" src="../liwe.js"></script>
<script type="text/javascript" src="../event.js"></script>
<script type="text/javascript">
function init ()
{
	// liwe.events.add ( document.getElementById ( "link" ), "click", function () { alert ( "LOAD" ); } );
	// liwe.events.add ( document, "click", function () { alert ( "DOC CLICK" ); } );

	console.debug ( "Type: " + typeof ( $( "link2" ) ) );

	$e ( "link2", "click", function ( e ) { e.preventDefault (); console.debug ( "link2 click" ); } );

	liwe.events.once ( $( "link3" ), "click", function ( e ) { console.debug ( "ONCE" ); } );
} 


liwe.events.add ( window, "load", function () { console.debug ( document.body ); init (); } );
</script>
</head> 
<body>
<a id="link">Test Format</a><br />
<div id="link2">Test click</div>
<div id="link3">Click once</div>


</body>
</html>
